#include<bits/stdc++.h>
using namespace std;
signed main() {
    int x;
    cin >> x;

    int z = x / 100 % 100;
    int y = z < 22 ? 20 : 19;

    if(x / 10000)
        y = x / 100;
    else
        y = y * 100 + z;

    x = x % 100;
    cout << y << "-" << setw(2) << setfill('0') << x;
    return 0;
}

